﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;


namespace TyMES.ViewModel.Record.BatchInforVMs
{
    public partial class BatchInforTemplateVM : BaseTemplateVM
    {
        [Display(Name = "产线号")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<BatchInfor>(x => x.LineCode);
        [Display(Name = "工序号")]
        public ExcelPropety OperationCode_Excel = ExcelPropety.CreateProperty<BatchInfor>(x => x.OperationCode);
        [Display(Name = "工序名称")]
        public ExcelPropety OperationName_Excel = ExcelPropety.CreateProperty<BatchInfor>(x => x.OperationName);
        [Display(Name = "SN")]
        public ExcelPropety CurrentSN_Excel = ExcelPropety.CreateProperty<BatchInfor>(x => x.CurrentSN);
        [Display(Name = "批次号")]
        public ExcelPropety BatchCode_Excel = ExcelPropety.CreateProperty<BatchInfor>(x => x.BatchCode);
        [Display(Name = "单次用量")]
        public ExcelPropety SingleConsumption_Excel = ExcelPropety.CreateProperty<BatchInfor>(x => x.SingleConsumption);
        [Display(Name = "所属工单")]
        public ExcelPropety orderCode_Excel = ExcelPropety.CreateProperty<BatchInfor>(x => x.orderCode);
        [Display(Name = "所属排程")]
        public ExcelPropety schduleCode_Excel = ExcelPropety.CreateProperty<BatchInfor>(x => x.schduleCode);
        [Display(Name = "上传工厂mes")]
        public ExcelPropety uploadFlag_Excel = ExcelPropety.CreateProperty<BatchInfor>(x => x.uploadFlag);

	    protected override void InitVM()
        {
        }

    }

    public class BatchInforImportVM : BaseImportVM<BatchInforTemplateVM, BatchInfor>
    {

    }

}
